package com.laf.manage.domain.dto;


import com.laf.common.validation.ValidGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel(value = "DynamicDTO", description = "动态管理DTO--> 新增或者修改")
public class DynamicDTO {

    @ApiModelProperty(value = "主键")
    @NotNull(message = "id不能为空", groups = ValidGroup.Crud.Update.class)
    private Long id;

    @ApiModelProperty(value = "内容")
    @NotNull(message = "内容不能为空")
    private String content;


    @ApiModelProperty("图片地址集合")
    private List<String> imgUrls;

    @ApiModelProperty("标签")
    private List<Long> tagIds;

}
